package com.yujistu.activity.appointactivity;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.widget.TextView;

import com.andexert.library.RippleView;
import com.yujistu.R;
import com.yujistu.activity.BaseActivity;
import com.yujistu.fragment.appointfragment.GroupDetailFragment;

/**
 * Created by Win on 2015/11/6.
 */
public class GroupDetailActivity extends BaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_detail_league);

        initViews();
    }

    TextView   titleTV;
    RippleView backRV;
    private void initViews() {
        backRV = (RippleView)findViewById(R.id.backRV);
        backRV.setVisibility(View.VISIBLE);
        backRV.setOnRippleCompleteListener(new RippleView.OnRippleCompleteListener() {
            @Override
            public void onComplete(RippleView rippleView) {
                finish();
            }
        });

        titleTV = (TextView)findViewById(R.id.tv_title_title);
        titleTV.setVisibility(View.VISIBLE);
        titleTV.setText("选择上课地点");
    }

    @Override
    protected void onResume() {
        super.onResume();

        GroupDetailFragment fragment = new GroupDetailFragment();
        FragmentTransaction  ft = getSupportFragmentManager().beginTransaction();
        ft.add(R.id.real_content , fragment);
        ft.commit();
    }
}
